<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <table class="table table-hover">
        <thead>
            <tr>
                <th>序号</th>
                <th>学号</th>
                <th>名字</th>
                <th>班级</th>
                <th>分数</th>
                <th>考试状态</th>
                <th>操作</th>
            </tr>
        </thead>
        <tbody>
            <tr th:each="student:${examStudentList}">
                <td th:text="${studentStat.index+1}"></td>
                <td th:text="${student.code}"></td>
                <td th:text="${student.sname}"></td>
                <td th:text="${student.exam_group}"></td>
                <td th:text="${student.score}"></td>
                <td>
                    <th:block th:if="${exam.yuliu2=='提交'}">
                        <select id="exam_student_list_status">
                            <option th:text="${student.status}"></option>
                        </select>
                    </th:block>
                    <th:block th:if="${exam.yuliu2 == null || exam.yuliu2!='提交'}">
                        <select id="exam_student_list_status" th:onchange="exam.updateStudentExamStatus([[${student.id}]],this)">
                            <option th:selected="${student.status=='已完成'}">已完成</option>
                            <option th:selected="${student.status=='缺考'}">缺考</option>
                            <option th:selected="${student.status=='作弊'}">作弊</option>
                        </select>
                    </th:block>

                </td>
                <th><button th:onclick="exam.readOneStudentExamPaper([[${student.id}]])" class="btn btn-default">批阅试卷</button></th>
            </tr>
        </tbody>
    </table>
</html>